FROM openjdk:8

ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8

ARG JAR_FILE='*.jar'
ARG TZ='Asia/Shanghai'

COPY ${JAR_FILE} app.jar

RUN echo ${TZ} > /etc/timezone;
RUN cp /usr/share/zoneinfo/${TZ} /etc/localtime

EXPOSE 8200

ENTRYPOINT ["java","-jar","-Dfile.encoding=UTF-8","-Dsun.jnu.encoding=UTF-8","-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}","/app.jar"]